package com.qf5.service;

import com.github.pagehelper.PageInfo;
import com.qf5.domain.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentService {
    List<Student> findAll();
    Student findById(Integer id);

    PageInfo<Student> findPage(int pageNum,int pageSize);

    int insert(Student stu);
    int delete(Integer id);
    int update(Student stu);
    Student findByNameAndAge(@Param("name") String name, @Param("age") Integer age);
}
